﻿using UnityEngine;
using System.Collections;

public class 跟随:MonoBehaviour {

    [SerializeField]
    private Vector3 偏移值;

    //[SerializeField]
    private Transform 对象;

    // Use this for initialization
    void Start() {
        对象 = transform.parent.gameObject.GetComponent<Transform>();
    }

    // Update is called once per frame
    void Update() {

        transform.position = 对象.transform.position + 偏移值;

        

    }
}
